FROM 10.1.10.47:5000/node-base:8
COPY --chown=docker-client:docker-client . /application
RUN cd /application/client && rm -rf `ls | grep -v package.json` && \
    npm install && rm package.json && \
    cd /application/server && rm -rf `ls | grep -v package.json` && \
    npm install --production && rm package.json && \
    npm cache clean --force && \
    chown -R docker-client:docker-client /application

